package com.qk.management.controller;

import com.qk.common.PageResult;
import com.qk.common.Result;
import com.qk.entity.domain.operateLog.OperateLogDO;
import com.qk.entity.dto.operateLog.OperateLogDTO;
import com.qk.management.service.OperateLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author fantuan
 * @created 2025/10/17 17:04
 * @description
 */
@RestController
@RequestMapping("/logs")
public class OperateLogController {
    @Autowired
    private OperateLogService operateLogService;
    @GetMapping
    public Result list(OperateLogDTO dto){
        PageResult<OperateLogDO> result = operateLogService.operateLogList(dto);
        return Result.success(result);
    }
}
